FROM openjdk:8-jre-alpine

RUN apk --no-cache add curl

ARG JMETER_VERSION=5.2
RUN curl --retry 3 https://downloads.apache.org/jmeter/binaries/apache-jmeter-$JMETER_VERSION.tgz | gunzip | tar x -C /opt

ENV PATH="${PATH}:/opt/apache-jmeter-$JMETER_VERSION/bin"

RUN mkdir -p /opt/loadTest
COPY . /opt/loadTest

WORKDIR /opt/loadTest

CMD ./start-load-tests.sh
